package com.eduadmin.mapper;

import com.eduadmin.entity.Teacher;
import org.springframework.stereotype.Component;

import java.util.List;
import java.util.Map;

@Component
public interface TeacherMapper {

    int insertTeachers(List<Teacher> teachers);

    Teacher selectTeacherByIdcard(String teacherIdcard);

    //获取所有教师 hgm
    List<Teacher> selectAllTeachers(Map<String,Object> paraMap);
    //获取教师总数 hgm
    long selectAllTeacherTotal(Map<String,Object> paraMap);
    //新增教师 hgm
    int insertNewAddTeacher(Teacher teacher);
    //更新教师信息 如果身份证号没在数据库中 就是新增教师 hgm
    int insertORupdate(Teacher teacher);
    //删除教师 hgm
    int deleteTeacher(String teacherIdCardString);
    //hgm 获取教师
    Teacher selectTeacherByName(String teacherName);


//    int deleteByPrimaryKey(String teacherIdCard);
//    int insertSelective(Teacher record);

//    Teacher selectByPrimaryKey(String teacherIdCard);

//    int updateByPrimaryKeySelective(Teacher record);

//    int updateByPrimaryKey(Teacher record);
}